/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package redes;

import java.util.ArrayDeque;

import networkproject.Layer;
import enlace.Enlace;

/**
 *
 * @author ivethy
 */
public abstract class Estado {
	public static final byte HOST_1 = 12;
	public static final byte HOST_2 = 22;
	public static final byte GATEWAY = 11;

    public Layer camadaCima;
    protected byte[] eu;
    protected byte mac;
    
    public Estado(Enlace layerDown, Layer layerUp) {
        camadaCima = layerUp;
    }
    
    abstract public void recebe(ArrayDeque<Byte> lista);
    
    abstract public void envia(ArrayDeque<Byte> lista, Byte destiny);
    
    public void setCamadaCima(Layer L){
    	camadaCima = L;
    }
}
